package com.sf.osms.dep.processor.handler;

import com.sf.osms.dep.domain.Agent;
import com.sf.osms.dep.processor.model.EventModel;

public interface EventHandler<T,E> {
	
	/**
	 * 处理EventModel中recordList中的原始记录，并且将不符合规范的记录存于EventModel中的errorEventRecord中
	 * @param eventModel
	 * @param agentInfo
	 * @return
	 * @throws Exception 
	 */
	EventModel<T,E> handle(EventModel<T,E> eventModel,Agent agentInfo) throws Exception;
	
}